package com.sense.cloud.sms.web.controller;

import java.io.Serializable;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;


public class TUser implements Serializable{
	private static final long serialVersionUID = 7704181791420749774L;

	private String username;

	private String password;

	private int age;

	@NotBlank(message = "用户名不能为空")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@NotNull(message = "密码不能为null")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Min(value = 10, message = "年龄的最小值为10")
	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
}
